<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>Insert title here</title>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="generator" content="emlog">
<title></title>
<link rel="stylesheet" href="/jsp/css/font_228781_so3n7xpiffajor.css" />
<link rel="stylesheet" href="/jsp/css/markdown.css" />
<link rel="stylesheet" href="/jsp/system/assets/css/style2.css" />

<script type="text/javascript" src="/jsp/js/jquery-2.2.2.min.js" ></script>
<script type="text/javascript" src="/jsp/js/marked.js"></script>
<script type="text/javascript" src="/jsp/js/common_tpl.js" ></script>
<script type="text/javascript" src="/jsp/js/dateformat.js" ></script>
</head>
<style>
	.menu li{
		list-style-type:none;
	}
	a{
		text-decoration:none;
	} 

</style>
<body>
<div class="nav">
    <div class="container">
        <a href="javascript:;" class="icon-menu" id="open-menu">
            <i class="icon-menu-item"></i>
            <i class="icon-menu-item"></i>
            <i class="icon-menu-item"></i>
        </a>
        <div>
            <a href="index.html">
                <img clall="img-log" src="/jsp/images/logo.png"  style="float: left;height: auto;" />
            </a>
        </div>
    </div>
</div>
<!--导航 ／-->
<!--面包屑导航-->
<div class="breadthumb">
    <div class="container">
        <a href="index.htm" class="bread-item">CourageAQ</a>
        <a href="" class="bread-item">${article.title }</a>
    </div>
</div>
<!--面包屑导航-->
<div class="main container">
    <div class="content-wrap">
        <div class="content" id="content" style="padding-right: 0px">
            <div class="panel echo_log">
                <div class="panel-body">
                    <h2 class="log-title">${article.title }</h2>
                    <div class="log-info">
                        <span><i class="iconfont icon-user"></i><a href="#"  class='user'>CourageAQ</a></span>
                        <span><i class="iconfont icon-time"></i>
                        	<fmt:parseDate value="${article.article_time}" pattern="yyyy-MM-dd" var="yearMonth" />
                        	<fmt:formatDate  value="${yearMonth}" pattern="yyyy-MM-dd" />
                        </span>
                        <span><i class="iconfont icon-view"></i>${article.clicknum }</span>
                    </div>
                    <div class="log-body">

                    </div>

                </div>
            </div>
        </div>
    </div>
</div>



<!--网站小工具-->
<div class="site-tools">
    <div class="item active gotoup" id="gotoup"><i class="iconfont icon-up"></i></div>
</div>
<!--网站小工具 ／-->
<script src="/jsp/js/main.min.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
    	var url = "${articleFile.article_url}"
        $.ajax({
            url: url,//文件位置
            type: "GET",//请求方式为get
            dataType: "text",
            success: function(data) {//请求成功完成后要执行的方法
                $(".log-body").html(marked(data));
            }
        });

    });
</script>
</body>
</html>